/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.b.b;

import android.text.TextUtils;
import org.json.JSONException;
import org.json.JSONObject;

public class e {
    public int a;
    public String b;
    public String c;
    public String d;

    public e(String paramString) {
        this.d = paramString;
        a(paramString);
    }

    private void a(String paramString) {
        if (paramString == null) {
            this.a = 10000;
            return;
        }
        try {
            JSONObject localJSONObject = new JSONObject(paramString);
            this.a = localJSONObject.optInt("errno");
            this.b = localJSONObject.optString("errmsg");
            this.c = localJSONObject.optString("data");
            if ((this.a != 0) || (!(TextUtils.isEmpty(this.c))))
                return;
            this.a = 10001;
        } catch (JSONException localJSONException) {
            this.a = 10002;
        }
    }
}